package com.alex.senior1.week1.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author alex
 * @since 2019-11-01
 */
public class TbGoods implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 商品名称
	 */
	@TableField("name")
	private String name;

	/**
	 * 英文名称
	 */
	@TableField("ename")
	private String ename;

	/**
	 * 商品品牌ID
	 */
	@TableField("brand_id")
	private Integer brandId;

	/**
	 * 商品种类ID
	 */
	@TableField("goodskind_id")
	private Integer goodskindId;

	/**
	 * 尺寸
	 */
	@TableField("size")
	private String size;

	/**
	 * 单元（元）
	 */
	@TableField("price")
	private BigDecimal price;

	/**
	 * 数量
	 */
	@TableField("amount")
	private Integer amount;

	/**
	 * 标签
	 */
	@TableField("tag")
	private String tag;

	/**
	 * 商品图片
	 */
	@TableField("img_url")
	private String imgUrl;

	/**
	 * 状态
	 */
	@TableField("status")
	private boolean status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEname() {
		return ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Integer getGoodskindId() {
		return goodskindId;
	}

	public void setGoodskindId(Integer goodskindId) {
		this.goodskindId = goodskindId;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "TbGoods [id=" + id + ", name=" + name + ", ename=" + ename + ", brandId=" + brandId + ", goodskindId=" + goodskindId + ", size=" + size + ", price=" + price + ", amount=" + amount + ", tag=" + tag + ", imgUrl=" + imgUrl + ", status=" + status + "]";
	}
}
